<template>
	<view class="agreement-container">
		<view class="agreement-item" v-for="(item, index) in agreement" :key="index" @click="toAgreementContent(index)" :data-text="item">
			<view class="item-content">{{ item }}</view>
			<view class="item-arrow">></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				agreement: ['租赁服务协议','隐私协议','个人征信授权书','债权转让协议','债权转让告知函','用户授权协议','数字证书协议']
			}
		},
		methods: {
			toAgreementContent(index) {
				console.log(index);
				uni.navigateTo({
					url: '/pagesB/bankArgee/bankArgee?userId='+index
				})
			}
		}
	}
</script>

<style scoped>
.agreement-container {
	padding: 10rpx 30rpx;
}
.agreement-item {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 20rpx 30rpx 20rpx 10rpx;
	background-color: #fff;
	margin-top: 30rpx;
}
</style>
